#include "thread_pool.hpp"
#include "task.hpp"
#include <ctime>
#include <cstdlib>
#include <unistd.h>
using namespace thread_pool;
int main()
{
    Thread_Pool<task>* tp=new Thread_Pool<task>();
    tp->ThreadInit();
    srand(time(NULL));
    while(1)
    {
        task t(rand()%20+1,rand()%10+1,"+-*/%"[rand()%5]);
        tp->Push(t);

        sleep(1);
    }
    return 0;
}